import React from 'react';
import { BrowserRouter as Router, Route,Redirect,Switch } from 'react-router-dom'
import Home from './components/Home'
import Recommend from './components/Recommend'
import SongList from './components/SongList'
import Player from './components/Player'
import './App.css';

class App extends React.Component {
  render() {
    return (
      <Router>
        <Switch>
          <Route path="/songList/:id" component={SongList}></Route>
          <Route path="/player/:songMid/:songId" component={Player}></Route>
          <Route path="/" component={Home}></Route>
        </Switch>
      </Router>
    );
  }
}

export default App;
